package model.tampon;

import java.util.Stack;

import model.Editeur;
import model.document.Document;

public class MemoireTampon {


	public Editeur myEditor;

	public Stack<Stackable> tampon;

	public MemoireTampon(Editeur editeur) {
		myEditor = editeur;
	}

	public Document getMyDocument() {
		return myEditor.getDocument();
	}

	public Stack<Stackable> getTampon() {
		return tampon;
	}

	public void setTampon(Stack<Stackable> tampon) {
		this.tampon = tampon;
	}

	public void add(Stackable stackable) {
		this.tampon.add(stackable);
		
	}
}